package binary.module

import binary.MemType
import binary.TypeIdx
import binary.type.GlobalType
import binary.type.TableType

/**
 *@author haypo
 *@since 2021/7/20
 */
class Import(
    val Module: String,
    val Name: String,
    val Desc: ImportDesc
) {

}

class ImportDesc(
    val Tag: Byte,
    val FuncType: TypeIdx, // tag=0
    val Table: TableType, // tag=1
    val Mem: MemType, // tag=2
    val Global: GlobalType // tag=3
) {

}